package xinxin.com.BuilderPatternBasic.Product;

import java.util.LinkedList;
import java.util.List;

/**
 * @author ：史鑫鑫
 * @date ：Created in 2019/3/25 20:05
 */
public class Product {
    private List<String> parts = new LinkedList<>();

    public void Add(String part) {
        parts.add(part);
    }

    public void Show() {
        System.out.println("\n产品 创建 ---");
        for (String part : parts) {
            System.out.println(part);
        }
    }
}
